<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="//unpkg.com/layui@2.7.6/dist/css/layui.css">
    <script type="text/javascript" src="//unpkg.com/layui@2.7.6/dist/layui.js"></script>
    <script type="text/javascript" src="js/comment_add.js"></script>
</head>
<body>
<div class="layui-container">
    <form class="layui-form" id="comment-form" lay-filter="comment-form">
        <div class="layui-form-item">
            <label class="layui-form-label">评论主题</label>
            <div class="layui-input-block">
                <input type="text" name="theme" lay-verify="required" placeholder="请输入评论主题"
                       lay-reqtext="请输入评论主题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否匿名</label>
            <div class="layui-input-block">
                <select name="isAnonymous" id="isAnonymous" lay-filter="anonymous" lay-verify="is_anonymous">
                    <option value="0">请选择是否匿名</option>
                    <option value="1">是</option>
                    <option value="2">否</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">评论内容</label>
            <div class="layui-input-block">
						<textarea name="content" lay-verify="required|content" placeholder="请输入评论内容限制50字"
                                  lay-reqtext="请输入评论内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="comment">提交评论</button>
            </div>
        </div>
    </form>
    <div class="layui-form-item layui-row layui-col-space10" id="comment-list"></div>
</div>
</body>
</html>